<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><%= title%></title>
    <style>
        .container {
            padding-right: 15px;
            padding-left: 15px;
            margin-right: auto;
            margin-left: auto;
        }
    </style>
</head>
<body>
<div class="container">
    <div id="duoshuocomment-box">
    </div>
</div>

<script src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
    var el = document.createElement('div');
    el.setAttribute('data-thread-key', '<%= panoid%>');
    el.setAttribute('data-url', '<%= url%>');
    el.setAttribute('data-title', '<%= title%>');
    el.setAttribute('class', 'ds-thread');

    jQuery("#duoshuocomment-box").append(el);

    var duoshuoQuery = {short_name:"chingkun"};
    (function() {
        var ds = document.createElement('script');
        ds.type = 'text/javascript';ds.async = true;
        ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
        ds.charset = 'UTF-8';
        (document.getElementsByTagName('head')[0]
        || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
</script>

</body>
</html>